<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Failed to Log In to the OceanCyber WebUI">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002060029394">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Failed to Log In to the OceanCyber WebUI</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002060029394"></a><a name="EN-US_TOPIC_0000002060029394"></a>

<h1 class="topictitle1">Failed to Log In to the OceanCyber WebUI</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_section10268141192018"><h4 class="sectiontitle">Symptom</h4><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p166510582199">Failed to log in to the OceanCyber WebUI.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_section4561171715205"><h4 class="sectiontitle">Possible Causes</h4><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p421812221200">System management data is damaged or lost, such as system configurations, database data, and internal certificates. As a result, the <strong id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_b10548830164710">protectmanager-system-base</strong> container is abnormal and the WebUI cannot be logged in to.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_section18896173120209"><h4 class="sectiontitle">Troubleshooting</h4><ol id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_ol1847145932119"><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li647175942116"><span>Log in to the background as user <strong id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_b24711649154112">kadmin</strong> and switch to user <strong id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_b1247215495410">root</strong>.</span></li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li18949141282214"><span>Run the following command to back up and restore management data.</span><p><ul id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_ul19594922112217"><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li35941922172216">Local system management data restoration<pre class="screen" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_screen8654316228">sh /opt/k8s/chart/install_script/sysbackup_recovery.sh</pre>
<p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p572112545226">This command is used to obtain the local management data backup list for restoration.</p>
</li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li8173161042315">Remote system management data restoration<pre class="screen" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_screen19668171413230">sh /opt/k8s/chart/install_script/sysbackup_recovery.sh <em id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_i198971535142113">sftp_user</em> <em id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_i4738258182112">sftp_host</em> <em id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_i166896242212">sftp_path</em> <em id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_i1090611782216">sftp_filename</em></pre>
<p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p1347819152216">This command is used to obtain the backup data from the remote SFTP server for restoration.</p>

<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_table1999613274225" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters for restoring remote system management data</caption><colgroup><col style="width:21.47%"><col style="width:78.53%"></colgroup><thead align="left"><tr id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_row1399692716222"><th align="left" class="cellrowborder" valign="top" width="21.47%" id="mcps1.3.3.2.2.2.1.2.3.2.3.1.1"><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p1399622742211">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="78.53%" id="mcps1.3.3.2.2.2.1.2.3.2.3.1.2"><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p1299672752213">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_row599622716222"><td class="cellrowborder" valign="top" width="21.47%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p8996122712212">sftp_user</p>
</td>
<td class="cellrowborder" valign="top" width="78.53%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p9996127132218">(Mandatory) Username for logging in to the SFTP server.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_row18996327152210"><td class="cellrowborder" valign="top" width="21.47%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p109961127132212">sftp_host</p>
</td>
<td class="cellrowborder" valign="top" width="78.53%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p899611277221">(Mandatory) Host IP address of the SFTP server.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_row99961271220"><td class="cellrowborder" valign="top" width="21.47%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p29961327142219">sftp_path</p>
</td>
<td class="cellrowborder" valign="top" width="78.53%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p79968271220">(Optional) Path of the SFTP server. The default value is <strong id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_b1021064205411">/var/sysbackup</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_row19996192742213"><td class="cellrowborder" valign="top" width="21.47%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p29961527102212">sftp_filename</p>
</td>
<td class="cellrowborder" valign="top" width="78.53%" headers="mcps1.3.3.2.2.2.1.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p8996027112211">(Optional) Name of the SFTP server files. The default value is the latest file name in the path where the SFTP server is located.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</p></li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li35724752212"><span>After the script is successfully executed, run the following command to view the pod named <strong id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_b158072717610">protectmanager-system-base-0</strong> in the namespace and wait until the value of READY in the third column is <strong id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_b15998271764">2/2</strong>:</span><p><pre class="screen" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_screen338083815241">kubectl get pod -A -owide</pre>
</p></li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li776613307249"><span>Log in to the OceanCyber WebUI again and check whether the login is successful.</span><p><ul id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_ul13860171052511"><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li28605103253">If yes, no further action is required.</li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li1186112104253">If no, reinstall the environment or keep the fault environment intact and contact technical support engineers.</li></ul>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_section168204432010"><h4 class="sectiontitle">Suggestion</h4><ol id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_ol1965312519257"><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li66541025132513">Before running the script, ensure that the infrastructure pod status is normal.</li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li12654132514257">Before running the script, ensure that the backup package is the backup package of the current environment (not reinstalled environment or other environments).</li><li id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_li76541325192513">Before running the script, ensure that the backup package version is the same as the current environment version.</li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_section1339205212206"><h4 class="sectiontitle">References</h4><p id="EN-US_TOPIC_0000002060029394__en-us_topic_0000001783223962_p9181359172013">None.</p>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>